package cn.pzhuWEB.llk.entity;

import org.apache.ibatis.annotations.Param;

public class User {
    //学生姓名
    private String stuName;
    //学生学号-登录时的账号
    private String stuCard;
    //所在学院
    private String college;
    //所属专业
    private String major;
    //用户密码
    private String password;
    //用户联系方式
    private String phone;
    //完成类别
    private String stuCompleteClasses;
    //完成耗时
    private String stuCompleteTime;
    //累积完成次数
    private Integer allPlayCount;
    //排名
    private int GradeCount;
    //登录状态
    private int flag;

    public User() {
    }

    public User(@Param("college") String college, @Param("major")String major, @Param("stuName")String stuName, @Param("phone")String phone, @Param("stuCard")String stuCard, @Param("password")String password) {
        this.stuName = stuName;
        this.stuCard = stuCard;
        this.college = college;
        this.major = major;
        this.password = password;
        this.phone = phone;
    }

    public User(String college,String stuName, String stuCard, String major, String stuCompleteTime) {
        this.stuName = stuName;
        this.college = college;
        this.stuCard = stuCard;
        this.major = major;
        this.stuCompleteTime = stuCompleteTime;
    }


    public User(String stuCard, String password) {
        this.stuCard = stuCard;
        this.password = password;
    }

    public int getGradeCount() {
        return GradeCount;
    }

    public void setGradeCount(int gradeCount) {
        GradeCount = gradeCount;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuCard() {
        return stuCard;
    }

    public void setStuCard(String stuCard) {
        this.stuCard = stuCard;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStuCompleteClasses() {
        return stuCompleteClasses;
    }

    public void setStuCompleteClasses(String stuCompleteClasses) {
        this.stuCompleteClasses = stuCompleteClasses;
    }

    public String getStuCompleteTime() {
        return stuCompleteTime;
    }

    public void setStuCompleteTime(String stuCompleteTime) {
        this.stuCompleteTime = stuCompleteTime;
    }


    public Integer getAllPlayCount() {
        return allPlayCount;
    }

    public void setAllPlayCount(Integer allPlayCount) {
        this.allPlayCount = allPlayCount;
    }

    @Override
    public String toString() {
        return "User{" +
                "stuName='" + stuName + '\'' +
                ", stuCard='" + stuCard + '\'' +
                ", college='" + college + '\'' +
                ", major='" + major + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", stuCompleteClasses='" + stuCompleteClasses + '\'' +
                ", stuCompleteTime='" + stuCompleteTime + '\'' +
                ", allPlayCount=" + allPlayCount +
                '}';
    }
}
